import { createStore, applyMiddleware } from 'redux'
import reduxThunk from 'redux-thunk'
//import reduxLogger from 'redux-logger'
//const  loggerMiddleware = reduxLogger();

//创建加入中间件的createStore函数
//它提供的是位于 action 被发起之后，到达 reducer 之前的扩展点
const configureStore = applyMiddleware(
    reduxThunk
    //,loggerMiddleware
)(createStore);
//暴露store创建函数
export default configureStore